package com.pet_service.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.pet_service.util.CodeEnum;

/**
 * @author 邹全伸
 * @version 1.0
 * @date 2025-09-18 13:46
 */
public enum TOrderStatus implements CodeEnum {
    PENDING(0, "待付款"),
    PAID(1, "已付款待服务"),
    SERVICING(2, "服务中"),
    COMPLETED(3, "已完成"),
    REFUNDING(4, "退款中"),
    REFUNDED(5, "已退款");

    @EnumValue
    private final int code;
    private final String desc;

    TOrderStatus(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() { return code; }
    public String getDesc() { return desc; }
}
